import {createRouter,createWebHashHistory} from 'vue-router'

import A from '../components/A.vue'
const routes = [
  {
    path:'/A',
    name:'A',
    component:A
  },
  {
    path:'/B',
    name:'B',
    meta:{isFooter:false},
    component:() => import('../components/Shadow.vue'),
    children:[
      {
        path:'/B/C',
        name:'C',
        component:() => import('../components/C.vue')
      },
      {
        path:'/B/default',
        name:'Default',
        component:() => import('../components/Default.vue')
      }
    ]
  }
]

export default createRouter({
  history:createWebHashHistory(),
  routes
})